package com.ihunanren.dao.weixin;

import java.sql.SQLException;
import java.util.List;

import com.ihunanren.common.Pair;
import com.ihunanren.dao.WeixinMsgPojo;
import com.ihunanren.dao.WeixinMsgType;

/**
 * @author kalman03
 * @param <T>
 */
public interface IWeixinMsgDao {
	
	/**
	 * @param id 用户id，or叫做页面id
	 * @param currPage 当前页码
	 * @param pageNum 查询size
	 * @param msgType 消息类型
	 * @return
	 * @throws SQLException
	 */
	List<?> getWeiXinMsg(long id,int currPage,int pageNum,WeixinMsgType msgType)throws SQLException;
	
	int getWeixinMsgCount(long id,WeixinMsgType msgType)throws SQLException;
	
	boolean insertWeixinNormalMsg(Pair<? extends WeixinMsgPojo,WeixinMsgType> pair)throws SQLException;
	
}
